# utils/common.py
result = {
    "message": "操作成功",
    "success": True,
    "data": None
}


def removeEmpty(data):
    data2 = {}
    for o in data:
        if not data[o] == '':
            data2[o] = data[o]
    return data2

def format_to_request_param(requset_params):
    if len(requset_params) > 0:
        requset_json = {}
        print(type(requset_params))
        for i in requset_params:
            print(i['keyName'] + ': ' + i['value'])
            requset_json[i['keyName']] = i['value']
        print(requset_json)
        return requset_json
    else:
        return '无数据'